package com.lcpress.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.lcpress.entity.User;


public interface UserMapper {
	
	@Insert("insert into lcpress_users(username,password) values(#{username},#{password})")
	int add(User userEntity);
	
	@Select("select * from lcpress_users")
	List<User> getAllUsers();
	
	@Update("update lcpress_users set username=#{username},password=#{password} where id = #{id}")
    int update(User userEntity);

}
